package presentaion.financialui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JRadioButton;

public class MoneyUI {

	private JFrame frame;
	private JTable table;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MoneyUI window = new MoneyUI();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public MoneyUI() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 833, 516);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBounds(138, 57, 623, 332);
		frame.getContentPane().add(panel);
		
		JLabel label_2 = new JLabel("客户姓名：");
		label_2.setBounds(151, 52, 74, 15);
		panel.add(label_2);
		
		JLabel label = new JLabel("制定收付款单");
		label.setFont(new Font("宋体", Font.PLAIN, 33));
		label.setBounds(167, 0, 223, 38);
		panel.add(label);
		
		JRadioButton radioButton_2 = new JRadioButton("付款单");
		radioButton_2.setBounds(63, 48, 121, 23);
		panel.add(radioButton_2);
		
		table = new JTable();
		table.setBounds(10, 77, 592, 257);
		panel.add(table);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(225, 48, 124, 21);
		panel.add(textField);
		
		JRadioButton radioButton = new JRadioButton("收款单");
		radioButton.setBounds(10, 48, 121, 23);
		panel.add(radioButton);
		
		JButton button_1 = new JButton("退出系统");
		button_1.setBounds(425, 24, 93, 23);
		frame.getContentPane().add(button_1);
		
		JButton button_2 = new JButton("软件帮助");
		button_2.setBounds(299, 24, 93, 23);
		frame.getContentPane().add(button_2);
		
		JLabel label_1 = new JLabel("当前用户");
		label_1.setBounds(625, 14, 54, 15);
		frame.getContentPane().add(label_1);
		
		JButton button_3 = new JButton("注销");
		button_3.setBounds(680, 10, 64, 19);
		frame.getContentPane().add(button_3);
		
		JButton button_4 = new JButton("查看销售明细表");
		button_4.setBounds(10, 219, 118, 23);
		frame.getContentPane().add(button_4);
		
		JButton button_5 = new JButton("查看经营历程表");
		button_5.setBounds(10, 263, 118, 23);
		frame.getContentPane().add(button_5);
		
		JButton button_6 = new JButton("查看经营情况表");
		button_6.setBounds(10, 307, 118, 23);
		frame.getContentPane().add(button_6);
		
		JButton button_7 = new JButton("账户管理");
		button_7.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		button_7.setBounds(10, 120, 118, 23);
		frame.getContentPane().add(button_7);
		
		JButton button_8 = new JButton("制定现金费用单");
		button_8.setBounds(10, 170, 118, 23);
		frame.getContentPane().add(button_8);
		
		JButton button_9 = new JButton("增加条目");
		button_9.setBounds(286, 422, 93, 23);
		frame.getContentPane().add(button_9);
		
		JButton button_10 = new JButton("删除条目");
		button_10.setBounds(466, 422, 93, 23);
		frame.getContentPane().add(button_10);
	}
}
